import {BehaviorWithStore} from "mobx-miniprogram-bindings"
import {userStore} from "../../stores/userstore"
// 购物车存储仓库
import {
  cartStore
} from "../../stores/cartObj"

export const selectPathBehavior = BehaviorWithStore({
  storeBindings: [{
    store: userStore,
    fields: ["userInfo"],
    actions: ['setUserInfo']
  },{
    store: cartStore,
    fields: ["isSend","storeObj","addressObj"],
    actions: ["changeIsSend","changeStoreObj"]
  }]
})